/*
 *  $Id: MagicShatter.cs 1004 2010-05-03 11:50:53Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008-2009 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Air.Abilities {
    public class MagicShatter: AbilityCard<Affect> {
        public MagicShatter(): base("001_a_a_magic_shatter") {
            Level = CompleteLevel.ReadyForTest;
            Version = 0;
            Element = ElementType.Air;
            Target = EnchantmentTarget.OnlyDispellable;
        }

        protected override void DoAction(TargetArgs<Affect> args) {
            args.Caster.DamageBy(NewDamage(args, DamageType.Health, 1));
            args.Target.Dispell();
        }

        /// <summary>
        /// Эффект способности "Разрушение магии" для возможности ее последующего удаления
        /// </summary>
        public class MSAffect: Affects.AbilityAffect {
            public MSAffect(): base(CardManager.GetAbility<MagicShatter>()) {}

            public override bool Dispellable {
                get { return false; }
            }
        }
    }
}
